﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;

namespace Mindfor.Web.Data
{
	/// <summary>
	/// Provides functions for data provider.
	/// </summary>
	public interface IDataProvider
	{
		/// <summary>
		/// Gets configured session factory.
		/// </summary>
		ISessionFactory SessionFactory { get; }

		/// <summary>
		/// Gets current data session. Returns null if no current data session.
		/// </summary>
		ISession GetCurrentSession();
	}
}
